package com.ruoyi.project.ins.service.impl;

import com.ruoyi.project.ins.domain.InsWebProxy;
import com.ruoyi.project.ins.service.IInsWebProxyService;
import com.ruoyi.project.mapper.InsWebProxyMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class InsWebProxyServiceImpl implements IInsWebProxyService {
    @Autowired
    private InsWebProxyMapper insWebProxyMapper;

    @Override
    public List<InsWebProxy> selectInsWebProxyList(InsWebProxy insWebProxy) {
        return insWebProxyMapper.selectInsWebProxyList(insWebProxy);
    }

    @Override
    public int insertInsWebProxy(InsWebProxy insWebProxy) {
        return insWebProxyMapper.insertInsWebProxy(insWebProxy);
    }

    @Override
    public int updateInsWebProxy(InsWebProxy insWebProxy) {
        return insWebProxyMapper.updateInsWebProxy(insWebProxy);
    }

    @Override
    public InsWebProxy selectInsWebProxyById(Long id) {
        return insWebProxyMapper.selectInsWebProxyById(id);
    }

    @Override
    public InsWebProxy selectInsWebProxyBySysUser(String sysUsername) {
        return insWebProxyMapper.selectInsWebProxyBySysUser(sysUsername);
    }

    @Override
    public InsWebProxy selectValidWebProxyBySysUser(String sysUsername) {
        return insWebProxyMapper.selectValidWebProxyBySysUser(sysUsername);
    }
}
